package com.tcu.user.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.tcu.user.entity.User;
import com.tcu.user.entity.vo.UserVo;

import java.util.List;

public interface IUserService extends IService<User> {
    User register(User user);
    Boolean isRepeatName(String username);

    IPage<User> pageListCondition(Long page, Long size, UserVo userVo);

    Boolean updateUserRoles(String userId, List<String> roles);
}
